const names = ['abc', 'cba', 'nba', NaN];
console.log(names.indexOf('cba')); //1
console.log(names.indexOf(NaN)); //-1 indexof找不到NaN的
//includes可以的
console.log(names.includes(NaN)); //TRUE
